package com.mtung.dubbo.loadbalance;

import com.mtung.dubbo.loadbalance.impl.LoopLoadBalance;

import java.util.ArrayList;

/**
 * @author : zhenguo.yao
 * @date : 2020/3/23 0023 15:11
 */
public class TestBalance {
    public static void main(String[] args) {
        ArrayList<String> objects = new ArrayList();
        objects.add("192.168.1.111:8080");
        objects.add("192.168.1.111:8081");
        LoadBalance loadBalance = new LoopLoadBalance();
        loadBalance.select(objects);
        loadBalance.select(objects);
        loadBalance.select(objects);
        loadBalance.select(objects);
    }
}
